import request from '@/utils/request'

// 查询检测数据列表
export function listDetectitem(query) {
  return request({
    url: '/business/detectitem/list',
    method: 'get',
    params: query
  })
}

// 查询检测数据详细
export function getDetectitem(id) {
  return request({
    url: '/business/detectitem/' + id,
    method: 'get'
  })
}

// 新增检测数据
export function addDetectitem(data) {
  return request({
    url: '/business/detectitem',
    method: 'post',
    data: data
  })
}

// 修改检测数据
export function updateDetectitem(data) {
  return request({
    url: '/business/detectitem',
    method: 'put',
    data: data
  })
}

// 删除检测数据
export function delDetectitem(id) {
  return request({
    url: '/business/detectitem/' + id,
    method: 'delete'
  })
}
